package com.sunstar.club.subject.domain.convert;

import com.sunstar.club.subject.domain.entity.SubjectInfoBo;
import com.sunstar.club.subject.domain.entity.SubjectOptionBo;
import com.sunstar.club.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: Shylo Sun
 * @Project: track-club
 * @Date: 2024/2/23 15:26
 */
@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBo);

    SubjectInfoBo convertOptionBoToInfoBo(SubjectOptionBo subjectOptionBo);

    SubjectInfoBo convertOptionBoAndInfoToInfoBo(SubjectOptionBo subjectOptionBo,SubjectInfo subjectInfo);

    List<SubjectInfoBo> convertListInfoToListBo(List<SubjectInfo> subjectInfoList);

}
